<script type="text/javascript">
var successFun=function(res){
if(res.code==200){
	alert('更新成功！');
	document.location = res.data.forward;
}else{
	alert('出错了！');
}
}
$(document).ready(function() { 
	var updateOptions	= {dataType:'json',error:doError,success:doSuccess}
    $('#form').ajaxForm(updateOptions); 
}); 
</script>
<div class="content">
	<div class="simplebox grid740">
    	<div class="titleh">
        	<h3>添加模块</h3>
        </div>
        <div class="body">
          <form id="form" action="{url('Module','SaveEdit')}" method="post">
          	<div class="st-form-line">	
            	<span class="st-labeltext">模块名称</span>	
                <input type="text" style="width: 300px;" class="st-forminput" name="title" id="title-input" value="{$info['title']}"> 
                <div class="clear"></div>
                <div class="st-form-error" id="title-info" etype="error-info"></div>
            	<div class="clear"></div>
            </div>
          
          	<div class="st-form-line">	
            	<span class="st-labeltext">模块标签</span>	
                <input type="text" style="width: 300px;" class="st-forminput" name="tags" id="tags-input" value="{$info['tags']}"> 
                <div class="clear"></div>
                <div class="st-form-error" id="tags-info" etype="error-info"></div>
            	<div class="clear"></div>
            </div>
            
            <div class="st-form-line">	
            	<span class="st-labeltext">获取分享条数</span>	
                <input type="text" style="width: 300px;" class="st-forminput" name="page_size" id="page_size-input" value="{$info['page_size']}"> 
                <div class="clear"></div>
                <div class="st-form-error" id="page_size-info" etype="error-info"></div>
            	<div class="clear"></div>
            </div>
            
            <div class="st-form-line">	
            	<span class="st-labeltext">显示顺序</span>	
                <input type="text" style="width: 300px;" class="st-forminput" name="orderby" id="orderby-input" value="{if $info['orderby']}{$info['orderby']}{else}0{/if}"> 
                                          数值越大排在越前面
                <div class="clear"></div>
                <div class="st-form-error" id="orderby-info" etype="error-info"></div>
            	<div class="clear"></div>
            </div>
            
            <div class="button-box">
              <input name="id" type="hidden" value="{$id}" />
              <input name="position" type="hidden" value="{$position}" />
           	  <input type="submit" class="st-button" value="确认">
           	  <input type="button" class="st-clear" value="返回" onclick="history.back(-1)">
            </div>
          </form>
        </div>
    </div>
</div>